﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="CustomerManage_QuestionManage" Codebehind="QuestionManage.aspx.cs" %>

<%@ Register Assembly="CutPageBar" Namespace="SiteCommon" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>客户问答管理</title>
    <link type="text/css" rel="Stylesheet" href="css/admin.css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table align="center" class="gjh">
            <tr>
                <td colspan="100">
                    <asp:Label ID="lblError" runat="server" ForeColor="Red"></asp:Label>
                </td>
            </tr>
            <tr>
                <th colspan="100" align="left">客户问答管理</th>
            </tr>
            <tr>
                <th>客户提问</th>
                <th>客服回答</th>
                <th>时间</th>
            </tr>
            <asp:Repeater ID="rpList" runat="server">
                <ItemTemplate>
                    <tr>
                        <td><%#DataBinder.Eval(Container.DataItem, "Question")%></td>
                        <td><%#DataBinder.Eval(Container.DataItem, "Answer")%></td>
                        <td><%#DataBinder.Eval(Container.DataItem, "AddTime")%></td>
                    </tr>        
                </ItemTemplate>
            </asp:Repeater>
        </table>
        <table align="center" width="90%" cellpadding="0" cellspacing="0">
            <tr>
                <td><cc1:CutPageBar ID="CutPageBar1" runat="server" ShowCount="True" PageSize="15" OnOnPageIndexChanged="CutPage" />  </td>
            </tr>
        </table>
                  
        <table align="center" class="gjh">
            <tr>
                <th colspan="2" align="left">添加客户问答</th>
            </tr>
            <tr>
                <td>客户提问</td>
                <td><asp:TextBox ID="txtQuestion" runat="server" TextMode="MultiLine" Columns="80" Rows="3"></asp:TextBox></td>
            </tr>
            <tr>
                <td>客服回答</td>
                <td><asp:TextBox ID="txtAnswer" runat="server" TextMode="multiLine" Columns="80" Rows="3"></asp:TextBox></td>
            </tr>
            <tr>
                <td colspan="2">
                    <asp:Button ID="btnSubmit" runat="server" Text="添加客户问答" Width="200px" OnClick="btnSubmit_Click" />
                    <asp:Button ID="btnClear" runat="server" Text="清空数据" Width="200px" OnClick="btnClear_Click" />
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
